package com.mongdbtokuduswagger.entity;

import com.mongdbtokuduswagger.utils.BeanMethodAnnotation;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 *  低压电力遥测实体
 * @author Daft_V
 * @date 2022/3/10 16:12
 */
@Setter
@Document(collection="e104_low_remote_detect")
public class LowRemoteDetect {
    private ObjectId id;

    private int remotDetectId;

    private String pid;

    private Double eValue;

    private Date createDate;

    public ObjectId getId() {
        return id;
    }

    @BeanMethodAnnotation(order = 2)
    public int getRemotDetectId() {
        return remotDetectId;
    }

    @BeanMethodAnnotation(order = 1)
    public String getPid() {
        return pid;
    }

    @BeanMethodAnnotation(order = 3)
    public Double getEValue() {
        return eValue;
    }

    @BeanMethodAnnotation(order = 4)
    public Date getCreateDate() {
        return createDate;
    }
}
